/**
*  Copyright 2002 Sun Microsystems, Inc. All rights reserved.
*/

/**
 *Title Employee
 * @author xiaofei
 *@version 1.0
 */
package person;

public class Employee extends Person {
	protected String office;
	protected double wage;
	protected String hireDate;
	
	public Employee()
	{
		super();
		this.office = null;
		this.wage = 0;
		this.hireDate = null;
	}
	
	public Employee(String name, String address, String telephone, String email, String office, 
			double wage, String hireDate)
	{
		super(name, address,telephone, email);
		this.office = office;
		this.wage = wage;
		this.hireDate = hireDate;
	}
	
	public String toString()
	{
		return "This employee's name is " + super.name + " and address is " + super.address + 
				" and telephone is " + super.telephone + " and email is " + super.email +
				" and office is " + this.office + " and wage is " + this.wage + " and hiredate is "+
				this.hireDate + ".";
	}
}
